package activity.store;

import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.ImageView;

import com.itboye.hutoubenjg.R;

import base.BaseActivity;
import util.utls.Const;
import util.utls.XImageLoader;

/**
 * 查看大图
 */

public class ImageShowerActivity extends BaseActivity {
    ImageView image_img;
    String imgUrl;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_imageshower);
        imgUrl=getIntent().getStringExtra("imgUrl");
        XImageLoader.load(Const.IMAGE_HEAD + imgUrl, image_img);

        final ImageLoadingDialog dialog = new ImageLoadingDialog(this);
        dialog.setCanceledOnTouchOutside(false);
        dialog.show();
        // 两秒后关闭后dialog
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                dialog.dismiss();
            }
        }, 1000 * 2);
    }

    @Override
    protected void onInit() {

    }

    @Override
    protected void onReadIntent(Bundle bundle) {

    }

    @Override
    public void onClick(View v) {

    }
}
